package com.example.userblog.service;

import com.example.userblog.dao.TypeDao;
import com.example.userblog.dao.UserDao;
import com.example.userblog.entity.Type;
import com.example.userblog.entity.User;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TypeService {
    @Resource
    private TypeDao typeDao;
    public List<Type> getAll(){
        List<Type> list=typeDao.selectAll();
        return list;
    }
}
